package DataServer

import (
	"gitee.com/dark.H/DataDash/in"
	"github.com/gorilla/websocket"
)

type Msg struct {
	Op   string   `json:"op"`
	Data in.Datas `json:"data"`
}

var (
	NowPanelNodes       = make(in.NodeView)
	NowPanelEdge        = make(in.Edges)
	NowEdgeConnectValue = make(map[int]map[int]string)
	WaitData            = make(chan Msg, 1)
	MemPage             = 0
	MemPageLen          = 2000
	DisplaySettings     = struct {
		Page     int
		PageLen  int
		LastOper string
	}{
		Page:     0,
		PageLen:  2000,
		LastOper: "",
	}
	Upgrader = websocket.Upgrader{}
)
